<form method="post" action="order/add/">
        <div>订餐人:
          <select id="peopleId" name="peopleId" onchange="changePeople(this)">
            <?php
            foreach($people as $onepeople)
            {
                $checkStatus = $onepeople["People"]["id"] == $cookiePeople ? " selected='selected'" : "";
                echo "<option value='" . $onepeople["People"]["id"] . "'" . $checkStatus . ">" . $onepeople["People"]["name"] . "</option>";
            }
            ?>
        </select><span id="ajaxLoader"><img src="/img/ajax-loader.gif" /></span>
        </div>

     <div>餐&nbsp;&nbsp;&nbsp;&nbsp;馆:
         <select id="shopId" name="shopId" onchange="changeFoods(this)">
        <?php
        foreach($shops as $oneshop)
        {
            $checkStatus = $oneshop["Shop"]["id"] == $cookieShop ? " selected='selected'" : "";
            echo "<option note='" . $oneshop['Shop']['note'] . "' value='" . $oneshop["Shop"]["id"] . "'" . $checkStatus . ">" . $oneshop["Shop"]["name"] . "</option>";
        }
        ?>
        </select>
    </div>

     <div id="note"></div>
     <div>菜&nbsp;&nbsp;&nbsp;&nbsp;单:
     <select id="foodId" name="foodId">
        <?php
        foreach($foods as $onefood)
        {
            $checkStatus = $onefood["Food"]["id"] == $cookieFood ? " selected='selected'" : "";
            echo "<option value='" . $onefood["Food"]["id"] . "'" . $checkStatus . ">" . $onefood["Food"]["name"] . " - " . $onefood["Food"]["price"] . "</option>";
        }
        ?>
    </select>
    </div>

    <div>数&nbsp;&nbsp;&nbsp;&nbsp;量:
     <select id="count" name="count">
        <?php
        foreach($count as $onecount)
        {
            $checkStatus = $onecount == $cookieCount ? " selected='selected'" : "";
            echo "<option value='" . $onecount . "'" . $checkStatus . ">" . $onecount . "</option>";
        }
        ?>
    </select>
    </div>

    <input id="btnOrder" type="image" src="/img/order_btn.png" class="sj" />


    <div class="split"></div>
        
<table class="orderlist orderborder" width="100%" border="1" cellpadding="0" cellspacing="0" id="unpaidlist">
      <caption class="title">
      <span id="unpaidPeople">Roger</span>的未付款记录
      </caption>
      <thead>
        <tr>
          <th width="20%" scope="col">餐馆</th>
          <th width="30%" scope="col">菜名</th>
          <th width="12%" scope="col">数量</th>
          <th width="12%" scope="col">总价</th>
          <th width="26%" scope="col">订餐时间</th>
        </tr>
      </thead>
      <tbody>
      </tbody>
      <tfoot>
        <tr>
       	  <td colspan="5">合计:0</td>
        </tr>
      </tfoot>
</table>

</form>
